# -*- encoding:utf-8 -*-

from taobao.parser import TaobaoParser
from taobao.parser.json.JsonConverter import JsonConverter

class ObjectListJsonParser(TaobaoParser):

    def __init__(self, model):
        self.model = model

    def parser(self, rsp):
        converter = JsonConverter()
        return converter.toResponseList(rsp, self.model)
